//
//  LoginView.h
//  LoginViewDemo
//
//  Created by admin on 2019/6/18.
//  Copyright © 2019 薛磊. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class LoginViewConfigure;
@class LoginView;

@protocol  LoginViewDelegate<NSObject>
/**
 获取验证码
 */
-(void)obtainSms:(LoginView *)view;
/**
 登录
 */
-(void)loginViewLogin:(LoginView *)view;
/**
 用户协议
 */
-(void)userProtocol:(LoginView *)view;

@end

@interface LoginView : UIView

- (instancetype)initWithFrame:(CGRect)frame configure:(LoginViewConfigure *)configure;

@property(nonatomic,weak)id<LoginViewDelegate>delegate;

@property(nonatomic,strong)UITextField * phoneTF;

@property(nonatomic,strong)UITextField * codeTF;

-(void)begGcd;

@end

@interface LoginViewConfigure : NSObject
/**
 默认显示(手机号快捷登录)
 */
@property(nonatomic,copy)NSString * topLabelTitle;
/**
 默认显示(手机号快捷登录)字体大小
 */
@property(nonatomic,assign)CGFloat topFontSize;
/**
 默认显示(手机号快捷登录)字体大小
 */
@property(nonatomic,strong)UIColor * topTitleColor;

/**
 默认显示(请输入手机号)
 */
@property(nonatomic,copy)NSString * phoneTfPlaceholdText;
/**
 占位文字颜色
 */
@property(nonatomic,strong)UIColor * phoneTfPlaceholdColor;

/**
 输入框字体大小
 */
@property(nonatomic,assign)CGFloat phoneTfFontSize;
/**
 手机号输入框字体大小
 */
@property(nonatomic,strong)UIColor * phoneTfTitleColor;
/**
 默认显示(请输入短信验证码)
 */
@property(nonatomic,copy)NSString * smsTfPlaceholdText;
/**
 占位文字颜色
 */
@property(nonatomic,strong)UIColor * smsTfPlaceholdColor;
/**
 输入框字体大小
 */
@property(nonatomic,assign)CGFloat smsTfFontSize;
/**
 验证码输入框字体大小
 */
@property(nonatomic,strong)UIColor * smsTfTitleColor;
/**
 获取验证码
 */
@property(nonatomic,copy)NSString * getCodeText;
/**
 获取验证码字体大小
 */
@property(nonatomic,assign)CGFloat codeFontSize;
/**
 获取验证码字体大小
 */
@property(nonatomic,strong)UIColor * codeTitleColor;

/**
 登录按钮背景图
 */
@property(nonatomic,copy)NSString * loginNormalBtImageStr;

/**
 登录按钮背景图为激活
 */
@property(nonatomic,copy)NSString * loginDisBtImageStr;

@end

NS_ASSUME_NONNULL_END
